package com.gxt.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.gxt.service.BgmService;
import com.gxt.utils.IMoocJSONResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(value = "背景音乐业务接口",tags = "背景音乐业务controller")
@RequestMapping("/bgm")
public class BgmController {
	@Autowired
	private BgmService bgmservice;
	
	@ApiOperation(value = "获取背景音乐列表",notes = "获取背景音乐列表的接口")
	@PostMapping("/list")
	public IMoocJSONResult List() {

		return IMoocJSONResult.ok(bgmservice.queryBgmList());
	}

}
